/**
 * Generate time : 2011-11-24 5:59:06
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cl.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCLReport_Riskrecord table comment : 隐患报表记录
 */
public class ZMCLReport_RiskRecord extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdReportId = " "; /* 安全报表ID */
	private String fdRiskRecordId = " "; /* 隐患记录ID */
	private String fdRiskCode = " "; /* 隐患编号 */
	private String fdRiskDate = " "; /* 隐患日期 */
	private String fdSourceId = " "; /* 隐患来源 */
	private String fdDepartment = " "; /* 隐患单位 */
	private String fdRiskPlace = " "; /* 隐患地点 */
	private String fdDeadline = " "; /* 解决期限 */
	private String fdRiskClassifyId = " "; /* 隐患分类 */
	private String fdRiskLevelId = " "; /* 隐患级别 */
	private Double fdPenalty = new Double(0); /* 罚款金额 */
	private String fdStatus = " "; /* 隐患状态 */
	private String fdRiskContent = " "; /* 隐患内容 */
	private String fdEngineerId = " "; /* 隐患工程ID */
	private String fdEngineerName = " "; /* 隐患工程名称 */
	private String fdResponsibilityPeople = " "; /* 责任人 */
	private String fdCheckPeople = " "; /* 检查人 */
	private String fdReportPeopleId = " "; /* 记录人ID */
	private String fdReportPeople = " "; /* 记录人 */
	private String fdReportDepartmentId = " "; /* 记录人部门ID */
	private String fdReportDepartment = " "; /* 记录人部门 */
	private String fdReportTime = " "; /* 记录时间 */
	private String fdType = " "; /* 隐患类型 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReportId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("安全报表ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskRecordId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("隐患记录ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskCode");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("隐患编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskDate");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("隐患日期");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdSourceId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("隐患来源");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartment");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("隐患单位");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskPlace");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("隐患地点");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDeadline");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("解决期限");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskClassifyId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("隐患分类");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskLevelId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("隐患级别");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdPenalty");
		eiColumn.setType("N");
		eiColumn.setScaleLength(0);
		eiColumn.setFieldLength(15);
		eiColumn.setDescName("罚款金额");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdStatus");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("隐患状态");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRiskContent");
		eiColumn.setFieldLength(1000);
		eiColumn.setDescName("隐患内容");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEngineerId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("隐患工程ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEngineerName");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("隐患工程名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdResponsibilityPeople");
		eiColumn.setFieldLength(200);
		eiColumn.setDescName("责任人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdCheckPeople");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("检查人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReportPeopleId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("记录人ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReportPeople");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("记录人");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReportDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("记录人部门ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReportDepartment");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("记录人部门");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdReportTime");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("记录时间");
		eiMetadata.addMeta(eiColumn);
		
		eiColumn = new EiColumn("fdType");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("隐患类型");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCLReport_RiskRecord() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdReportId - 安全报表ID
	 * 
	 * @return the fdReportId
	 */
	public String getFdReportId() {
		return this.fdReportId;
	}

	/**
	 * set the fdReportId - 安全报表ID
	 */
	public void setFdReportId(String fdReportId) {
		this.fdReportId = fdReportId;
	}

	/**
	 * get the fdRiskRecordId - 隐患记录ID
	 * 
	 * @return the fdRiskRecordId
	 */
	public String getFdRiskRecordId() {
		return this.fdRiskRecordId;
	}

	/**
	 * set the fdRiskRecordId - 隐患记录ID
	 */
	public void setFdRiskRecordId(String fdRiskRecordId) {
		this.fdRiskRecordId = fdRiskRecordId;
	}

	/**
	 * get the fdRiskCode - 隐患编号
	 * 
	 * @return the fdRiskCode
	 */
	public String getFdRiskCode() {
		return this.fdRiskCode;
	}

	/**
	 * set the fdRiskCode - 隐患编号
	 */
	public void setFdRiskCode(String fdRiskCode) {
		this.fdRiskCode = fdRiskCode;
	}

	/**
	 * get the fdRiskDate - 隐患日期
	 * 
	 * @return the fdRiskDate
	 */
	public String getFdRiskDate() {
		return this.fdRiskDate;
	}

	/**
	 * set the fdRiskDate - 隐患日期
	 */
	public void setFdRiskDate(String fdRiskDate) {
		this.fdRiskDate = fdRiskDate;
	}

	/**
	 * get the fdSourceId - 隐患来源
	 * 
	 * @return the fdSourceId
	 */
	public String getFdSourceId() {
		return this.fdSourceId;
	}

	/**
	 * set the fdSourceId - 隐患来源
	 */
	public void setFdSourceId(String fdSourceId) {
		this.fdSourceId = fdSourceId;
	}

	/**
	 * get the fdDepartment - 隐患单位
	 * 
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}

	/**
	 * set the fdDepartment - 隐患单位
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}

	/**
	 * get the fdRiskPlace - 隐患地点
	 * 
	 * @return the fdRiskPlace
	 */
	public String getFdRiskPlace() {
		return this.fdRiskPlace;
	}

	/**
	 * set the fdRiskPlace - 隐患地点
	 */
	public void setFdRiskPlace(String fdRiskPlace) {
		this.fdRiskPlace = fdRiskPlace;
	}

	/**
	 * get the fdDeadline - 解决期限
	 * 
	 * @return the fdDeadline
	 */
	public String getFdDeadline() {
		return this.fdDeadline;
	}

	/**
	 * set the fdDeadline - 解决期限
	 */
	public void setFdDeadline(String fdDeadline) {
		this.fdDeadline = fdDeadline;
	}

	/**
	 * get the fdRiskClassifyId - 隐患分类
	 * 
	 * @return the fdRiskClassifyId
	 */
	public String getFdRiskClassifyId() {
		return this.fdRiskClassifyId;
	}

	/**
	 * set the fdRiskClassifyId - 隐患分类
	 */
	public void setFdRiskClassifyId(String fdRiskClassifyId) {
		this.fdRiskClassifyId = fdRiskClassifyId;
	}

	/**
	 * get the fdRiskLevelId - 隐患级别
	 * 
	 * @return the fdRiskLevelId
	 */
	public String getFdRiskLevelId() {
		return this.fdRiskLevelId;
	}

	/**
	 * set the fdRiskLevelId - 隐患级别
	 */
	public void setFdRiskLevelId(String fdRiskLevelId) {
		this.fdRiskLevelId = fdRiskLevelId;
	}
	
	/**
	 * get the fdPenalty - 罚款金额
	 * 
	 * @return the fdPenalty
	 */
	public Double getFdPenalty() {
		return this.fdPenalty;
	}

	/**
	 * set the fdPenalty - 罚款金额
	 */
	public void setFdPenalty(Double fdPenalty) {
		this.fdPenalty = fdPenalty;
	}

	/**
	 * get the fdStatus - 隐患状态
	 * 
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}

	/**
	 * set the fdStatus - 隐患状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}

	/**
	 * get the fdRiskContent - 隐患内容
	 * 
	 * @return the fdRiskContent
	 */
	public String getFdRiskContent() {
		return this.fdRiskContent;
	}

	/**
	 * set the fdRiskContent - 隐患内容
	 */
	public void setFdRiskContent(String fdRiskContent) {
		this.fdRiskContent = fdRiskContent;
	}

	/**
	 * get the fdEngineerId - 隐患工程ID
	 * 
	 * @return the fdEngineerId
	 */
	public String getFdEngineerId() {
		return this.fdEngineerId;
	}

	/**
	 * set the fdEngineerId - 隐患工程ID
	 */
	public void setFdEngineerId(String fdEngineerId) {
		this.fdEngineerId = fdEngineerId;
	}

	/**
	 * get the fdEngineerName - 隐患工程名称
	 * 
	 * @return the fdEngineerName
	 */
	public String getFdEngineerName() {
		return this.fdEngineerName;
	}

	/**
	 * set the fdEngineerName - 隐患工程名称
	 */
	public void setFdEngineerName(String fdEngineerName) {
		this.fdEngineerName = fdEngineerName;
	}

	/**
	 * get the fdResponsibilityPeople - 责任人
	 * 
	 * @return the fdResponsibilityPeople
	 */
	public String getFdResponsibilityPeople() {
		return this.fdResponsibilityPeople;
	}

	/**
	 * set the fdResponsibilityPeople - 责任人
	 */
	public void setFdResponsibilityPeople(String fdResponsibilityPeople) {
		this.fdResponsibilityPeople = fdResponsibilityPeople;
	}

	/**
	 * get the fdCheckPeople - 检查人
	 * 
	 * @return the fdCheckPeople
	 */
	public String getFdCheckPeople() {
		return this.fdCheckPeople;
	}

	/**
	 * set the fdCheckPeople - 检查人
	 */
	public void setFdCheckPeople(String fdCheckPeople) {
		this.fdCheckPeople = fdCheckPeople;
	}

	/**
	 * get the fdReportPeopleId - 记录人ID
	 * 
	 * @return the fdReportPeopleId
	 */
	public String getFdReportPeopleId() {
		return this.fdReportPeopleId;
	}

	/**
	 * set the fdReportPeopleId - 记录人ID
	 */
	public void setFdReportPeopleId(String fdReportPeopleId) {
		this.fdReportPeopleId = fdReportPeopleId;
	}

	/**
	 * get the fdReportPeople - 记录人
	 * 
	 * @return the fdReportPeople
	 */
	public String getFdReportPeople() {
		return this.fdReportPeople;
	}

	/**
	 * set the fdReportPeople - 记录人
	 */
	public void setFdReportPeople(String fdReportPeople) {
		this.fdReportPeople = fdReportPeople;
	}

	/**
	 * get the fdReportDepartmentId - 记录人部门ID
	 * 
	 * @return the fdReportDepartmentId
	 */
	public String getFdReportDepartmentId() {
		return this.fdReportDepartmentId;
	}

	/**
	 * set the fdReportDepartmentId - 记录人部门ID
	 */
	public void setFdReportDepartmentId(String fdReportDepartmentId) {
		this.fdReportDepartmentId = fdReportDepartmentId;
	}

	/**
	 * get the fdReportDepartment - 记录人部门
	 * 
	 * @return the fdReportDepartment
	 */
	public String getFdReportDepartment() {
		return this.fdReportDepartment;
	}

	/**
	 * set the fdReportDepartment - 记录人部门
	 */
	public void setFdReportDepartment(String fdReportDepartment) {
		this.fdReportDepartment = fdReportDepartment;
	}

	/**
	 * get the fdReportTime - 记录时间
	 * 
	 * @return the fdReportTime
	 */
	public String getFdReportTime() {
		return this.fdReportTime;
	}

	/**
	 * set the fdReportTime - 记录时间
	 */
	public void setFdReportTime(String fdReportTime) {
		this.fdReportTime = fdReportTime;
	}
	
	/**
	 * get the fdQualityStandard - 质量标准化分类
	 * 
	 * @return the fdQualityStandard
	 */
	public String getFdType() {
		return this.fdType;
	}

	/**
	 * set the fdQualityStandard - 质量标准化分类
	 */
	public void setFdType(String fdType) {
		this.fdType = fdType;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdReportId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportId")), fdReportId));
		setFdRiskRecordId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskRecordId")), fdRiskRecordId));
		setFdRiskCode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskCode")), fdRiskCode));
		setFdRiskDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskDate")), fdRiskDate));
		setFdSourceId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSourceId")), fdSourceId));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdRiskPlace(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskPlace")), fdRiskPlace));
		setFdDeadline(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDeadline")), fdDeadline));
		setFdRiskClassifyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskClassifyId")), fdRiskClassifyId));
		setFdRiskLevelId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskLevelId")), fdRiskLevelId));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdRiskContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRiskContent")), fdRiskContent));
		setFdEngineerId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEngineerId")), fdEngineerId));
		setFdEngineerName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEngineerName")), fdEngineerName));
		setFdResponsibilityPeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdResponsibilityPeople")), fdResponsibilityPeople));
		setFdCheckPeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCheckPeople")), fdCheckPeople));
		setFdReportPeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportPeopleId")), fdReportPeopleId));
		setFdReportPeople(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportPeople")), fdReportPeople));
		setFdReportDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartmentId")), fdReportDepartmentId));
		setFdReportDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartment")), fdReportDepartment));
		setFdReportTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportTime")), fdReportTime));
		setFdPenalty(NumberUtils.toDouble(StringUtils.toString(map.get("fdPenalty")), fdPenalty));
		setFdType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdType")), fdType));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdReportId", StringUtils.toString(fdReportId, eiMetadata.getMeta("fdReportId")));
		map.put("fdRiskRecordId", StringUtils.toString(fdRiskRecordId, eiMetadata.getMeta("fdRiskRecordId")));
		map.put("fdRiskCode", StringUtils.toString(fdRiskCode, eiMetadata.getMeta("fdRiskCode")));
		map.put("fdRiskDate", StringUtils.toString(fdRiskDate, eiMetadata.getMeta("fdRiskDate")));
		map.put("fdSourceId", StringUtils.toString(fdSourceId, eiMetadata.getMeta("fdSourceId")));
		map.put("fdDepartment", StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));
		map.put("fdRiskPlace", StringUtils.toString(fdRiskPlace, eiMetadata.getMeta("fdRiskPlace")));
		map.put("fdDeadline", StringUtils.toString(fdDeadline, eiMetadata.getMeta("fdDeadline")));
		map.put("fdRiskClassifyId", StringUtils.toString(fdRiskClassifyId, eiMetadata.getMeta("fdRiskClassifyId")));
		map.put("fdRiskLevelId", StringUtils.toString(fdRiskLevelId, eiMetadata.getMeta("fdRiskLevelId")));
		map.put("fdStatus", StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));
		map.put("fdRiskContent", StringUtils.toString(fdRiskContent, eiMetadata.getMeta("fdRiskContent")));
		map.put("fdEngineerId", StringUtils.toString(fdEngineerId, eiMetadata.getMeta("fdEngineerId")));
		map.put("fdEngineerName", StringUtils.toString(fdEngineerName, eiMetadata.getMeta("fdEngineerName")));
		map.put("fdResponsibilityPeople", StringUtils.toString(fdResponsibilityPeople, eiMetadata.getMeta("fdResponsibilityPeople")));
		map.put("fdCheckPeople", StringUtils.toString(fdCheckPeople, eiMetadata.getMeta("fdCheckPeople")));
		map.put("fdReportPeopleId", StringUtils.toString(fdReportPeopleId, eiMetadata.getMeta("fdReportPeopleId")));
		map.put("fdReportPeople", StringUtils.toString(fdReportPeople, eiMetadata.getMeta("fdReportPeople")));
		map.put("fdReportDepartmentId", StringUtils.toString(fdReportDepartmentId, eiMetadata.getMeta("fdReportDepartmentId")));
		map.put("fdReportDepartment", StringUtils.toString(fdReportDepartment, eiMetadata.getMeta("fdReportDepartment")));
		map.put("fdReportTime", StringUtils.toString(fdReportTime, eiMetadata.getMeta("fdReportTime")));
		map.put("fdPenalty", StringUtils.toString(fdPenalty, eiMetadata.getMeta("fdPenalty")));
		map.put("fdType", StringUtils.toString(fdType, eiMetadata.getMeta("fdType")));

		return map;

	}
}